import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const store = createPinia();
store.use(piniaPluginPersistedstate); // 使用 pinia 持久化插件
import { useUserStore } from './user'

export default {
  user: useUserStore
}
export function setupStore(app) {
  app.use(store);
}

export { store };
